package com.chen.base.feign;

import com.chen.root.constant.SecurityCons;
import com.chen.base.module.log.dto.AccessLogDTO;
import com.chen.common.feign.constant.ServiceName;
import com.chen.root.base.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author ChenJinLong
 * @date 2023/6/25
 **/
@FeignClient(value = ServiceName.FRAMEWORK_SERVICE, contextId = "remoteFrameworkService")
public interface RemoteFrameworkService {

    /**
     * 保存日志
     * @param accessLogDTO 日志实体
     * @return succes、false
     */
    @PostMapping(value = "/log")
    R<Boolean> saveLog(@RequestBody AccessLogDTO accessLogDTO);

    @PostMapping(value = "/sysComConfig/getValue")
    R<String> getCommonConfigValueByName(String name);
}
